package com.tank.game.api.event;

import com.tank.game.api.Bullet;

import java.util.Objects;

/**
 * 子弹事件
 *
 * @author Zed
 */
public abstract class BulletEvent {

    private Bullet bullet;

    public BulletEvent(Bullet bullet) {
        this.bullet = Objects.requireNonNull(bullet, "\"bullet\" cannot be null.");
    }

    /**
     * 获取子弹
     *
     * @return {@link Bullet}
     */
    public Bullet getBullet() {
        return bullet;
    }
}
